<%@ page import="com.goal98.team.Constants" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title><g:message code="help.title" default="Help"/></title>
  </head>
  <body>
    %{--<div class="nav">
      <span class="menuButton"><g:link class="create" action="create"><g:message code="activity.new" default="New Activity"/></g:link></span>
    </div>--}%
    <div class="body">
      <h1><g:message code="help.title" default="Help"/></h1>
      <g:if test="${flash.message}">
        <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}"/></div>
      </g:if>
    </div>

    <div class="help">${helpPage.text}</div>

    <g:ifAnyGranted role="${Constants.ROLE_ADMIN}">

      <g:form>

        <fckeditor:config EnterMode="p"/>
        <div class="fckeditor">
          <fckeditor:editor
                  name="text"
                  width="100%"
                  height="400"
                  toolbar="Standard"
                  fileBrowser="default">
            <div>${helpPage.text}</div>
          </fckeditor:editor>

          <g:actionSubmit action="save" value="${message(code:'button.save', 'default':'Save')}"/>

        </div>
      </g:form>
    </g:ifAnyGranted>
  </body>
</html>
